﻿var app = angular.module("app", ["ngRoute"]);

app.config(function ($routeProvider) {
    $routeProvider.when("/", {
        templateUrl: "/App/Views/ngAlbum.html",
        controller: "ngAlbumController"
    }).when("/AlbumDetail/:id", {
        templateUrl: "/App/Views/ngAlbumDetail.html",
        controller: "ngAlbumDetailController"
    }).when("/AddAlbum", {
        templateUrl: "/App/Views/ngAlbumForm.html",
        controller: "ngAddAlbumController"
    }).when("/EditAlbum/:id", {
        templateUrl: "/App/Views/ngAlbumForm.html",
        controller: "ngEditAlbumController"
    });
});
